package br.org.isvi.interpretador.portugol.operations;

import br.org.isvi.interpretador.portugol.InterpreterResolver;
import br.org.isvi.interpretador.portugol.OperationResolver;
import br.org.isvi.interpretador.portugol.types.BooleanSymbol;
import br.org.isvi.interpretador.portugol.types.Symbol;

public class SmallerResolver implements OperationResolver {
	
	public SmallerResolver() {
		super();
	}

	public Symbol execute() {
		
		Symbol value = InterpreterResolver.instance.popStack();
		Symbol value2 = InterpreterResolver.instance.popStack();
		
		
		UtilsValidator.verifyKind(value, value2);
			

		return new BooleanSymbol(value2.smaller(value));
	}

}
